package aop_advice;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

public class HelloApp {

	public static void main(String[] args) {
		Resource rs = new ClassPathResource("aop_advice/beans.xml");
		BeanFactory factory = new XmlBeanFactory(rs);
	
		MessageBean mb = factory.getBean("proxy", MessageBean.class);
		mb.sayHello();

	}

}
